package com.zihan.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zihan.domain.dto.ActivityDTO;
import com.zihan.domain.entity.Activity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zihan.domain.vo.ActivityParticiPateVO;
import com.zihan.domain.vo.ActivityVO;

import java.util.List;

/**
 * <p>
 * 学术活动表 Mapper 接口
 * </p>
 *
 * @author zhangzihan
 * @since 2025-10-17
 */
public interface ActivityMapper extends BaseMapper<Activity> {

    /**
     * 获取所有活动列表
     * @param activityDTO
     * @param activityPage
     * @return
     */
    List<ActivityVO> getList(ActivityDTO activityDTO, Page<Activity> activityPage);

    List<ActivityVO> getAllList(ActivityDTO activityDTO, Page<Activity> activityPage);

    List<ActivityParticiPateVO> getAllParticipant(Long activityId);

    List<ActivityVO> getStudentList(ActivityDTO activityDTO, Page<Activity> activityPage);

    // 获取证书信息，保存到oss中
    List<ActivityVO> getInfoOfCertificates(Long activityId);
}
